<template>
  <div class="diy-table">
    <el-table
      :data="tableData"
      height="600"
      class="package-table-list"
      header-cell-style="background:#45A5E5;color:#fff;"
    >
      <el-table-column
        v-for="(item, index) in tHeadList"
        :key="index"
        :prop="item.prop"
        :label="item.label"
        align="center"
      >
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
import { defineComponent } from "vue";

export default defineComponent({
  name: "DiyTable",
  props: {
    tableData: {
      type: Array,
      default: [],
    },
    tHeadList: {
      type: Array,
      default: [],
    },
  },
  setup() {
    const handleDetail = (row) => {
      console.log(row);
    };
    return {
      handleDetail,
    };
  },
});
</script>
<style>
.el-table,.package-table-list{
    background: rgba(69, 165, 229, 0.3) !important; ;
    color:#fff;
}
.el-table tr{
    background: none !important;
}
.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
    color:#333 !important;
}
</style>